package com.tenbent.product.center.insures.dto.search;

import com.tenbent.product.base.dto.search.BaseSearchPageDto;
import com.tenbent.product.base.query.page.Pageable;
import com.tenbent.product.center.insures.bo.SafeguardCategory;

/**
 * 保障项目小类查询DTO
 *
 * @author Randy
 *
 *         Created by ThinkPad on 2017/8/28.
 */
public class SafeguardCategoryPageDto extends BaseSearchPageDto {

	/** 大类类型code */
	private String typeCode;

	/** 小类保障项目code */
	private String categoryCode;

	/** 小类保障项目内容 */
	private String categoryContent;

	/** 小类保障项目保额 */
	private String categoryAmount;

	@Override
	public Pageable transToPageable() {
		SafeguardCategory safeguardCategory = new SafeguardCategory();
		safeguardCategory.setId(this.getId());
		safeguardCategory.setTypeCode(this.getTypeCode());
		safeguardCategory.setCategoryCode(this.getCategoryCode());
		safeguardCategory.setCategoryContent(this.getCategoryContent());
		safeguardCategory.setCategoryAmount(this.getCategoryAmount());
		Pageable pageable = new Pageable(this.getPageNum(), this.getPageSize());
		pageable.setParamBizObject(safeguardCategory);
		return pageable;
	}

	public String getTypeCode() {
		return typeCode;
	}

	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}

	public String getCategoryCode() {
		return categoryCode;
	}

	public void setCategoryCode(String categoryCode) {
		this.categoryCode = categoryCode;
	}

	public String getCategoryContent() {
		return categoryContent;
	}

	public void setCategoryContent(String categoryContent) {
		this.categoryContent = categoryContent;
	}

	public String getCategoryAmount() {
		return categoryAmount;
	}

	public void setCategoryAmount(String categoryAmount) {
		this.categoryAmount = categoryAmount;
	}
}
